package cn.wolfcode.shop.mapper;

import cn.wolfcode.shop.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 贴了@Mapper标签的接口,调用方法是,
 * 会直接执行方法上贴了@Select等标签内的sql
 */
@Mapper
public interface UserMapper {
    @Select("select * FROM t_user where id = #{id}")
    User getById(Long id);
}
